package com.example.demo1;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import androidx.annotation.Nullable;

public class ThirdActivity extends Activity {
    private static final String TAG = "ThirdActivity->";

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_third);
        Log.d(TAG, "onCreate>>>taskId = " + getTaskId());
        findViewById(R.id.btn_jump_to_main).setOnClickListener(v -> {
            startActivity(new Intent(ThirdActivity.this, MainActivity.class));
        });
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.d(TAG, "onDestroy");
    }
}
